3.119 \(\int \frac {\sin ^n(e+f x)}{(1+\sin (e+f x))^{3/2}} \, dx\)

Optimal. Leaf size=60 \[ -\frac {\cos (e+f x) F_1\left (\frac {1}{2};-n,2;\frac {3}{2};1-\sin (e+f x),\frac {1}{2} (1-\sin (e+f x))\right )}{2 f \sqrt {\sin (e+f x)+1}} \]

[Out]

-1/2*AppellF1(1/2,-n,2,3/2,1-sin(f*x+e),1/2-1/2*sin(f*x+e))*cos(f*x+e)/f/(1+sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2785, 130, 429} \[ -\frac {\cos (e+f x) F_1\left (\frac {1}{2};-n,2;\frac {3}{2};1-\sin (e+f x),\frac {1}{2} (1-\sin (e+f x))\right )}{2 f \sqrt {\sin (e+f x)+1}} \]

Antiderivative was successfully verified.

[In]

Int[Sin[e + f*x]^n/(1 + Sin[e + f*x])^(3/2),x]

[Out]

-(AppellF1[1/2, -n, 2, 3/2, 1 - Sin[e + f*x], (1 - Sin[e + f*x])/2]*Cos[e + f*x])/(2*f*Sqrt[1 + Sin[e + f*x]])

Rule 130

Int[((e_.)*(x_))^(p_)*((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> With[{k = Denominator[p]
}, Dist[k/e, Subst[Int[x^(k*(p + 1) - 1)*(a + (b*x^k)/e)^m*(c + (d*x^k)/e)^n, x], x, (e*x)^(1/k)], x]] /; Free
Q[{a, b, c, d, e, m, n}, x] && NeQ[b*c - a*d, 0] && FractionQ[p] && IntegerQ[m]

Rule 429

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[a^p*c^q*x*AppellF1[1/n, -p,
 -q, 1 + 1/n, -((b*x^n)/a), -((d*x^n)/c)], x] /; FreeQ[{a, b, c, d, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[n
, -1] && (IntegerQ[p] || GtQ[a, 0]) && (IntegerQ[q] || GtQ[c, 0])

Rule 2785

Int[((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> -Dist[(b*(d
/b)^n*Cos[e + f*x])/(f*Sqrt[a + b*Sin[e + f*x]]*Sqrt[a - b*Sin[e + f*x]]), Subst[Int[((a - x)^n*(2*a - x)^(m -
 1/2))/Sqrt[x], x], x, a - b*Sin[e + f*x]], x] /; FreeQ[{a, b, d, e, f, m, n}, x] && EqQ[a^2 - b^2, 0] &&  !In
tegerQ[m] && GtQ[a, 0] && GtQ[d/b, 0]

Rubi steps

\begin {align*} \int \frac {\sin ^n(e+f x)}{(1+\sin (e+f x))^{3/2}} \, dx &=-\frac {\cos (e+f x) \operatorname {Subst}\left (\int \frac {(1-x)^n}{(2-x)^2 \sqrt {x}} \, dx,x,1-\sin (e+f x)\right )}{f \sqrt {1-\sin (e+f x)} \sqrt {1+\sin (e+f x)}}\\ &=-\frac {(2 \cos (e+f x)) \operatorname {Subst}\left (\int \frac {\left (1-x^2\right )^n}{\left (2-x^2\right )^2} \, dx,x,\sqrt {1-\sin (e+f x)}\right )}{f \sqrt {1-\sin (e+f x)} \sqrt {1+\sin (e+f x)}}\\ &=-\frac {F_1\left (\frac {1}{2};-n,2;\frac {3}{2};1-\sin (e+f x),\frac {1}{2} (1-\sin (e+f x))\right ) \cos (e+f x)}{2 f \sqrt {1+\sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 3.79, size = 263, normalized size = 4.38 \[ \frac {\sec (e+f x) \sin ^n(e+f x) \left (\sqrt {2-2 \sin (e+f x)} (\sin (e+f x)+1)^2 (-\sin (e+f x))^{-n} F_1\left (1;\frac {1}{2},-n;2;\frac {1}{2} (\sin (e+f x)+1),\sin (e+f x)+1\right )-\frac {4 (\sin (e+f x)+1) \sqrt {1-\frac {2}{\sin (e+f x)+1}} \left (1-\frac {1}{\sin (e+f x)+1}\right )^{-n} \left (2 (2 n+1) F_1\left (\frac {1}{2}-n;-\frac {1}{2},-n;\frac {3}{2}-n;\frac {2}{\sin (e+f x)+1},\frac {1}{\sin (e+f x)+1}\right )+(2 n-1) (\sin (e+f x)+1) F_1\left (-n-\frac {1}{2};-\frac {1}{2},-n;\frac {1}{2}-n;\frac {2}{\sin (e+f x)+1},\frac {1}{\sin (e+f x)+1}\right )\right )}{4 n^2-1}\right )}{8 f \sqrt {\sin (e+f x)+1}} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[Sin[e + f*x]^n/(1 + Sin[e + f*x])^(3/2),x]

[Out]

(Sec[e + f*x]*Sin[e + f*x]^n*((AppellF1[1, 1/2, -n, 2, (1 + Sin[e + f*x])/2, 1 + Sin[e + f*x]]*Sqrt[2 - 2*Sin[
e + f*x]]*(1 + Sin[e + f*x])^2)/(-Sin[e + f*x])^n - (4*(1 + Sin[e + f*x])*Sqrt[1 - 2/(1 + Sin[e + f*x])]*(2*(1
 + 2*n)*AppellF1[1/2 - n, -1/2, -n, 3/2 - n, 2/(1 + Sin[e + f*x]), (1 + Sin[e + f*x])^(-1)] + (-1 + 2*n)*Appel
lF1[-1/2 - n, -1/2, -n, 1/2 - n, 2/(1 + Sin[e + f*x]), (1 + Sin[e + f*x])^(-1)]*(1 + Sin[e + f*x])))/((-1 + 4*
n^2)*(1 - (1 + Sin[e + f*x])^(-1))^n)))/(8*f*Sqrt[1 + Sin[e + f*x]])

________________________________________________________________________________________

fricas [F]  time = 0.52, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {\sin \left (f x + e\right )^{n} \sqrt {\sin \left (f x + e\right ) + 1}}{\cos \left (f x + e\right )^{2} - 2 \, \sin \left (f x + e\right ) - 2}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(f*x+e)^n/(1+sin(f*x+e))^(3/2),x, algorithm="fricas")

[Out]

integral(-sin(f*x + e)^n*sqrt(sin(f*x + e) + 1)/(cos(f*x + e)^2 - 2*sin(f*x + e) - 2), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sin \left (f x + e\right )^{n}}{{\left (\sin \left (f x + e\right ) + 1\right )}^{\frac {3}{2}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(f*x+e)^n/(1+sin(f*x+e))^(3/2),x, algorithm="giac")

[Out]

integrate(sin(f*x + e)^n/(sin(f*x + e) + 1)^(3/2), x)

________________________________________________________________________________________

maple [F]  time = 0.16, size = 0, normalized size = 0.00 \[ \int \frac {\sin ^{n}\left (f x +e \right )}{\left (1+\sin \left (f x +e \right )\right )^{\frac {3}{2}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(f*x+e)^n/(1+sin(f*x+e))^(3/2),x)

[Out]

int(sin(f*x+e)^n/(1+sin(f*x+e))^(3/2),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sin \left (f x + e\right )^{n}}{{\left (\sin \left (f x + e\right ) + 1\right )}^{\frac {3}{2}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(f*x+e)^n/(1+sin(f*x+e))^(3/2),x, algorithm="maxima")

[Out]

integrate(sin(f*x + e)^n/(sin(f*x + e) + 1)^(3/2), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {{\sin \left (e+f\,x\right )}^n}{{\left (\sin \left (e+f\,x\right )+1\right )}^{3/2}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(e + f*x)^n/(sin(e + f*x) + 1)^(3/2),x)

[Out]

int(sin(e + f*x)^n/(sin(e + f*x) + 1)^(3/2), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sin ^{n}{\left (e + f x \right )}}{\left (\sin {\left (e + f x \right )} + 1\right )^{\frac {3}{2}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(f*x+e)**n/(1+sin(f*x+e))**(3/2),x)

[Out]

Integral(sin(e + f*x)**n/(sin(e + f*x) + 1)**(3/2), x)

________________________________________________________________________________________